var gulp    = require('gulp');
var fileinclude  = require('gulp-file-include');

gulp.task('dev', function() {
    gulp.src('./src/template/html/*.html')
        .pipe(fileinclude({
          prefix: '@@',
          basepath: '@file',
          context: {
            product: false
          }
        }))
    .pipe(gulp.dest('./src/view'));
});

gulp.task('includeHtml', function() {
    gulp.src('./src/template/html/*.html')
        .pipe(fileinclude({
          prefix: '@@',
          basepath: '@file',
          context: {
            product: true
          }
        }))
    .pipe(gulp.dest('./temp'));
});
